//
//  PicShowCell.m
//  UI15_太平洋电脑网
//
//  Created by dllo on 16/3/26.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "PicShowCell.h"

@implementation PicShowCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.label = [[UILabel alloc]init];
        [self.contentView addSubview:self.label];
        [_label release];
       self.label.backgroundColor = [UIColor colorWithRed:230/255.00 green:230/255.00 blue:230/255.00 alpha:1];
        self.picView = [[UIImageView alloc]init];
        [self.contentView addSubview:self.picView];
        [_picView release];
        self.titeLabel = [[UILabel alloc]init];
        [self.contentView addSubview:self.titeLabel];
        [_titeLabel release];
        self.titeLabel.backgroundColor = [UIColor whiteColor];
        self.numberLabel = [[UILabel alloc]init];
        [self.picView addSubview:self.numberLabel];
        [_numberLabel release];
        self.numberLabel.textColor = [UIColor whiteColor];
    }
    return self;
}
-(void)layoutSubviews{
    [super layoutSubviews];
    self.label.frame = CGRectMake(0, 0, 414, 10);
    self.picView.frame = CGRectMake(0, 10, 414, 190);
    self.titeLabel.frame = CGRectMake(0, 200, 414, 30);
    self.numberLabel.frame = CGRectMake(364, 160, 40, 20);
}














-(void)dealloc{
    [_numberLabel release];
    [_titeLabel release];
    [_picView release];
    [_label release];
    [super dealloc];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
